package com.googlecode.xbeandatasource.jxpath;

import org.apache.commons.jxpath.JXPathContext;

/**
 * @author Johny Huang
 *
 */
public class JXpathParser {

	public final static Object parse(Object obj, String expression){
		JXPathContext ctx=JXPathContext.newContext(obj);
		return ctx.getValue(expression);
	}
}
